<link rel="stylesheet" type="text/css" href="<?php echo PUBLIC_URL ?>css/pro-center.css">
<!-- 傲生饮料价绍-->

<div id="pro-one">
    <div class="nav">
        <i style="margin-left:20px;"> 当前位置：<i style="color:green">首页 > 产品中心 ></i> <?php echo $_GET['proname']; ?></i>
    </div>
   <img width="15%" src="<?php echo PROIMG.$proinfo['proimg'];?>">
   <div class="pro-tit">
        <h3 style="color:#0C7A3D;font-size:20px;position:absolute;left:-130px;margin:0; padding:0;width:500px;"><?php echo $proinfo['proname']; ?></h3>
        <h2 style="font-size:40px; color:#A9C519;position:absolute;left:-12px;margin-left:25px;padding:0;top:5px;display:block;width:900px;text-align:left;" ><?php echo $proinfo['prodesc']; ?></h2>
        <ul style="margin-top:100px; margin-left:-20px;text-align:left;">
            <?php
                $eff = json_decode($proinfo['effect']);
                //$eff = explode(',', $proinfo['effect']);
                for($i=0; $i<4; $i++){
            ?>
            <li>. <?php echo $eff[$i];  ?></li>
            <?php } ?>
        </ul>
   </div>
</div>
<!-- 傲生饮料价绍end -->

<!-- 产品详情-->
<div id="pro-tow">
    <div class="pro-tow-nav">
        产品详情 DESCRIPTION
    </div>
    <div class="left">
        <h3><?php echo $proinfo['proname']; ?></h3>
        <img width="100%" style="margin-left:-10px;" src="<?php echo PROIMG.$proinfo['proimg']; ?>"><br>
        <font color="#909090" size="4">净含量：<?php echo $proinfo['netcontent'] ?>克</font><br>
        <font color="#909090" size="4">配料：</font><br>
                <p style="text-indent:2em; margin-top:1px;"><font color="#909090"><?php echo $proinfo['element']; ?></font>
                </p>
                <br>
        <table border="1" cellpadding=0 cellspacing=0 align="center">
                <tr align="center"><th colspan=2>营 养 成 份 表</th></tr>
                <tr align="center">
                    <th>项目&nbsp;&nbsp;每份(29)克&nbsp;&nbsp;营养素参考值%</th>
                    <th>项目&nbsp;&nbsp;每份(29)克&nbsp;&nbsp;营养素参考值%</th>
                 </tr>
                 <?php for($i=0; $i<10; $i++){?>
                  <tr align="left">
                    <td>pp&nbsp;&nbsp;&nbsp;&nbsp;180克&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;营养素参考值%</td>
                    <td>dd&nbsp;&nbsp;&nbsp;&nbsp;250(29)克&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;营养素参考值%</td>
                 </tr>
                 <?php } ?>
        </table>
        <div class="left-bottom">
              <font color='#909090' style="line-height:25px;">
                 生产日期：<?php echo $proinfo['dateproducted'] ?><br>
                 储存方法：<?php echo $proinfo['methods'] ?><br>
                 适用人群：<?php echo $proinfo['apply'] ?><br>
                 食用方法：<?php echo $proinfo['ediblemethods'] ?><br>
                    原产国：<?php echo $proinfo['countryoforigin'] ?><br>
              配方所有权：<?php echo $proinfo['authority'] ?><br>
                    生产商：<?php echo $proinfo['manufacturer'] ?><br>
             生产商地址：<?php echo $proinfo['manufacturerAddress'] ?><br>
             境内代理商：<?php echo $proinfo['agency'] ?><br>
      境内代理商地址：<?php echo $proinfo['agencyAddress'] ?><br>
       境内代理商电话：<?php echo $proinfo['agencyPhone'] ?><br>
             
            </font>
        </div>
    </div>
    <div class="right">
        <div class="pro-right">其它产品 DESCRIPTION</div>
        
        <?php foreach($proinfo['other'] as $ot){ ?>
            <div style="cursor:pointer;" class="other" name="divv" onmouseover="show(this)" onmouseout="noshow(this)" id="<?php echo $ot['id']; ?>" onclick="other(this.id)">
            <img style="position:relative;left:10px;margin-top:20px;" width="30%" src="<?php echo PROIMG.$ot['proimg']; ?>">
            <font color='red' style="font-size:13px;color:gray;position:relative;top:-10px;width:150px;height:65px;display:inline-block; word-break: break-all;word-wrap: break-word;overflow:hidden;"><?php echo $ot['proname']; echo '<br><br>';echo $ot['prodesc'] ?></font>
             <img style="position:relative; top:-50px;right:-1px;" src="<?php echo PUBLIC_URL ?>images/ao/arrow02.gif"><br>
            </div>
            <?php } ?>
        <script>
                    function show(obj){
                        obj.style.border='8px solid #AAC619';
                    }
                    function noshow(obj){
                        obj.style.border='';
                    }
                    function other(id){
                        window.location.href="<?php echo DOCUMENT.'welcome/show_pro?id=' ?>"+id;
                    }
        </script>
    </div>
  
</div>
<!-- 产品详情-->